<head>
	<meta charset="utf-8" />
	<link rel="stylesheet" href="/BackEndRecursosHumanos/app/webroot/css/smoothness/jquery-ui-1.10.3.custom.min.css" />
	<!--<link rel="stylesheet" type="text/css" href="/BackEndRecursosHumanos/app/webroot/css/ui-lightness/jquery-ui-1.10.3.custom.min.css">-->
	<script type="text/javascript" src="/BackEndRecursosHumanos/app/webroot/js/jquery-1.9.1.js"></script>
	<script type="text/javascript" src="/BackEndRecursosHumanos/app/webroot/js/jquery-ui-1.10.3.custom.min.js"></script>
	<!--<script type="text/javascript" src="/BackEndRecursosHumanos/app/webroot/js/jquery-ui-i18n.js"></script>-->
	<script src="/BackEndRecursosHumanos/app/webroot/js/jquery.mousewheel.js"></script>
  	<script src="/BackEndRecursosHumanos/app/webroot/js/globalize.js"></script>
  	<!--<link rel="stylesheet" href="/BackEndRecursosHumanos/app/webroot/css/stylespinner.css" />-->
	
	<style>
	  .selectable_evento .ui-selecting { background: #8C8E92; }
	  .selectable_evento .ui-selected { background: #36393C; color: white; }
	  .selectable_evento { list-style-type: none; margin: 0; width: 60%; }
	  
	  .selectable_sede .ui-selecting { background: #8C8E92; }
	  .selectable_sede .ui-selected { background: #36393C; color: white; }
	  .selectable_sede { list-style-type: none; margin: 0; width: 60%; }
  	</style>
	
	<script>
		function seleccionar_modulos_activos()
		{
			
		}
		function seleccionar_check($id)
	   	{
				$(".check_box_modulo").prop("checked",$id);
				$(".check_box_modulo").attr("checked",$id);
				
	    }
	    
	    function activar_deactivar_selecionados($id_deac_ac)
   		{
	   		var id;
	   		$('#configuracion_seleccionados').val('');
		    $("#assign_tabla tr td table tr td .check_box_modulo:checked").each(function(index) 
		    {
		           
		           id = $(this).attr('id');
		           $('#configuracion_seleccionados').val($('#configuracion_seleccionados').val()+','+id);
		           alert ( $('#configuracion_seleccionados').val());
		           
		           
		    });
		}
		
	</script>
	
	
</head>
<body >
	
	<center>
		<button onclick="activar_deactivar_selecionados(1);">click</button>
		<?php echo $this->Form->create('Assign');?>
		<input id="configuracion_seleccionados" type="hidden">
		<table id = "assign_tabla">
			
			<tr>
				<td>
					<div>
					
					<legend><b>Configuración</b></legend>
					
					<center>
					<?php echo $this->Form->create('ConfiguracionSistema'); ?>
					<table style="width: 50%; border: dotted;">					
						<tr>
							
													
							<td style="text-align: center; vertical-align: middle">				
								<?php
										
											echo $this->Form->input('configuracion_sistema_id',array(
																												
																							'options' => array($configuracions),
																							'onchange' => 'this.form.submit();',
																							'label' => array(
																												'text' => 'Escoja una configuración',
																												'style' => array(
																																	'font-weight: bold;',
																																	'font-style: italic;'
																																)
																																
																											)
																							 
																			               )
																	 );
											?>
									
						 	</td>
					 	</tr>
					 	<tr>
					 		<td></td>
					 	</tr>
					 </table>
					 <?php echo $this->Form->end();?>
					 </center>
					</td>
				</tr>
				
			
		</table>
		
	</center>
</body>
